<?php 
if(!empty($model->fullname))
$this->breadcrumbs=array(
	'Nhân vật sự kiện'=>array('index'),
	$model->fullname,
);
if(!empty($model->fullname))
	echo '<h1><strong>'.$model->fullname.'<strong></h1><br>';
 ?>
 <ul style="float:right;padding-right:5px;margin-top:-60px">
<li class="btn-group">
 <button type="button" class="btn blue dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true">
 <span>Actions</span> <i class="icon-angle-down"></i>
 </button>
 <ul class="dropdown-menu pull-right" role="menu">
     <li><?php echo CHtml::link('Chỉnh sửa',array('artists/update','id'=>$model->id),array('class'=>'btn green','style'=>'margin-top: 3px;width: 100%;')); ?></li>
    <li><?php echo CHtml::link('Thêm ảnh',array('artists/addimage','id'=>$model->id),array('class'=>'btn yellow','style'=>'margin-top: 3px;margin-bottom: 3px;width: 100%;')); ?></li>
    <li><?php echo CHtml::link('Add Slide',array('artists/updateValue','act'=>'doSlide','id'=>$model->id),array('class'=>'btn','style'=>'background-color: #852b99;color:#fff;margin-top: 3px;margin-bottom: 3px;width: 100%;')); ?></li>
    <li><?php echo CHtml::link('Top Event',array('artists/updateValue','act'=>'doTopEvent','id'=>$model->id),array('class'=>'btn blue','style'=>'margin-top: 3px;width: 100%;')); ?></li>
 </ul>
</li>
</ul>
<!-- end button -->
 <div class="portlet box green">
	<div class="portlet-title">
	 <div class="caption"><i class="icon-cogs"></i>Thông tin chung</div>
	</div>
	<div class="portlet-body">
	 <table class="table table-bordered table-hover">
	    <thead>
	       <tr>
	          <th>Tên đầy đủ</th>
	          <th>NickName</th>
	          <th>Email</th>
	          <th>Giới tính</th>
	          <th>Ngày sinh</th>
	       </tr>
	    </thead>
	    <tbody>
	       <tr>
	          <td><?php  if(!empty($model->fullname)){ echo $model->fullname ; } ?></td>
	          <td><?php  if(!empty($model->nickname)){ echo $model->nickname; } ?></td>
	          <td><?php  if(!empty($model->email)){ echo $model->email ; } ?></td>
	          <td><?php  if(!empty($model->gender)){ if($model->gender == 'N'){ echo "Nam"; }else{ echo "Nữ"; } } ?></td>
	          <td><?php  if(!empty($model->dateofbirth)){ echo date('d-m-Y',strtotime($model->dateofbirth)) ; } ?></td>
	       </tr>
	    </tbody>
	 </table>
	</div>
</div>

 <div class="portlet box green">
	<div class="portlet-title">
	 <div class="caption"><i class="icon-cogs"></i>Thông tin mạng xã hội</div>
	</div>
	<div class="portlet-body">
	 <table class="table table-bordered table-hover">
	    <thead>
	       <tr>
	          <th>Mãng xã hội</th>
	          <th>Đường dẫn</th>
	       </tr>
	    </thead>
	    <tbody>
	       
	       	<?php foreach ($social as $key => $value) { ?>
	       	<tr>
	       		<?php  if(!empty($value->social_id)){ $nameSocial = SocialNetworking::model()->findByPk($value->social_id); } ?>	
	       		<td><?php echo $nameSocial->title ?></td>
	       		<td><a href="<?php echo $value->url; ?>" target="_blank"><?php echo $value->url; ?></a></td>
	       	</tr>
	      	<? 	} ?>
	       
	    </tbody>
	 </table>
	</div>
</div>

 <div class="portlet box green">
	<div class="portlet-title">
	 <div class="caption"><i class="icon-cogs"></i>Nội Dung</div>
	</div>
	<div class="portlet-body">
		<h2 style="text-decoration: underline;font-style: italic;">Giới thiệu</h2>
		<p><?php if(!empty($model->brief)) echo $model->brief ; ?></p>
		<h2 style="text-decoration: underline;font-style: italic;">Nội Dung</h2>
		<p><?php if(!empty($profile->description)) echo nl2br($profile->description); ?>
	</div>
</div>
<div class="row">
	<div class="col-xs-12">
	 <div class="portlet box green">
		<div class="portlet-title">
		 <div class="caption"><i class="icon-cogs"></i>Hình ảnh - <?php echo CHtml::link('Thêm ảnh',array('artists/addimage','id'=>$model->id),array('style'=>'color: yellow;')); ?></div>
		</div>
		 
			<div class="col-sm-6 col-md-4 row" style="width:290px;margin-right:1px">
		        <div class="thumbnail">
		          <img style="width:100%" src="<?php echo IMAGES_URL . 'Artists/' . $model->image; ?>" alt="<?php echo $model->fullname; ?>" style="" />
		          <div class="caption">
		            <h3>Ảnh đại diện</h3>
		          </div>
		        </div>
		      </div> 
		     <?php foreach ($image as $key => $valueImage) { ?>
		    <div class="col-sm-6 col-md-4 row" style="width:290px;margin-right:1px">
		        <div class="thumbnail">
		           <img style="width:100%" src="<?php echo IMAGES_URL . 'Artists/' . $valueImage->image; ?>" alt="<?php echo $model->fullname; ?>" style="" />
		          <div class="caption">
		            <h3>Thumbnail label</h3>
		          </div>
		        </div>
		      </div>
		    <?php } ?>
	</div>
  </div>
</div>	